﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using TianYa.API.Response;

namespace TianYa.API.Request
{
    public class GetPlatePostListRequest : HttpGet<GetPlatePostListResponse>
    {
        public GetPlatePostListRequest(string plateid, string nexttime = null, int pagesize = 20)
            : base("http://open.tianya.cn/api/bbs/getarticlelist.php")
        {
            this.Params.Add("item", plateid);
            this.Params.Add("pagesize", pagesize.ToString());
            if (!string.IsNullOrEmpty(nexttime))
            {
                this.Params.Add("nexttime", nexttime);
            }
        }
    }
}
